<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/views1/DTD/views1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<div class="grid_4">
		<img src="#{request.contextPath}/images/logomarca.jpg" title="UVV" height="50"/>
	</div>
	<div class="grid_8 tituloRel">
		Relatório de Resultado de Provas
	</div>
	<div class="grid_5" style="text-align: right;">
	<h:outputText value="#{loginBean.usuarioInstance.nomeCompleto}"/> - 
	<h:outputText value="#{relatorioBean.diaHoje}">
		<f:convertDateTime pattern="dd/MM/yyyy"/>
	</h:outputText>
	</div>
	
	<div class="clear espacamento"></div>
	
	<div class="grid_17"><hr/><br/></div>
	
	<div class="grid_3">Disciplina:</div>
	<div class="grid_9"><b><h:outputText value="#{relatorioBean.ofertaInstance.disciplina.nome}"/>&nbsp;</b></div>
	<div class="grid_3">Ano/Semestre:</div>
	<div class="grid_2">
		<b><h:outputText value="#{relatorioBean.ofertaInstance.data}"><f:convertDateTime pattern="yyyy"/>&nbsp;</h:outputText></b>
		<p:spacer width="2" height="1"/>/<p:spacer width="2" height="1"/>
		<b><h:outputText value="#{relatorioBean.ofertaInstance.semestre}">&nbsp;</h:outputText></b>
	</div>
	
	<div class="clear espacamento"></div>
	
	<div class="grid_3">Professor:</div>
	<div class="grid_14"><b><h:outputText value="#{relatorioBean.ofertaInstance.professor.nomeCompleto}"/>&nbsp;</b></div>
	
	<div class="clear espacamento"></div>
	
	<div class="grid_3">Código:</div>
	<div class="grid_4"><b><h:outputText value="#{relatorioBean.provaInstance.codigo}"/>&nbsp;</b></div>
	<div class="grid_2">Peso:</div>
	<div class="grid_3"><b><h:outputText value="#{relatorioBean.provaInstance.peso}"/>&nbsp;</b></div>
	<div class="grid_2">Valor:</div>
	<div class="grid_3"><b><h:outputText value="#{relatorioBean.provaInstance.valor}"/>&nbsp;</b></div>
	
	<div class="clear espacamento"></div>
	
	<div class="grid_3">Data de Início:</div>
	<div class="grid_6">
		<b><h:outputText value="#{relatorioBean.provaInstance.dataHoraInicio}"><f:convertDateTime pattern="dd 'de' MMMM 'de' yyyy 'ás' hh:MM:ss"/></h:outputText></b>
	</div>
	<div class="grid_2">Data de Fim:</div>
	<div class="grid_6">
		<b><h:outputText value="#{relatorioBean.provaInstance.dataHoraFim}"><f:convertDateTime pattern="dd 'de' MMMM 'de' yyyy 'ás' hh:MM:ss"/></h:outputText></b>
	</div>
	
	<div class="clear espacamento"></div>
	
	<div class="grid_3">Descrição:</div>
	<div class="grid_14"><b><h:outputText value="#{relatorioBean.provaInstance.descricao}"/></b></div>
	
	<div class="clear espacamento"></div>
	
	<div class="grid_3">Média:</div>
	<div class="grid_3"><b><h:outputText value="Média"/></b></div>
	
	<div class="grid_3">Acima da Média:</div>
	<div class="grid_1"><b><h:outputText value="00"/></b></div>
	
	<div class="grid_3">Abaixo da Média:</div>
	<div class="grid_1"><b><h:outputText value="00"/></b></div>

	<div class="grid_2">Na Média:</div>
	<div class="grid_1"><b><h:outputText value="00"/></b></div>
	
	<div class="clear espacamento"></div>
	
	<div class="grid_17">
		<p:dataTable widgetVar="dataTableAlunosProva" 
					id="dataTableAlunosProva" paginator="false" rows="100"
					selectionMode="none" var="a"
					emptyMessage="Nenhum registro encontrado!" 
					value="#{relatorioBean.ofertaInstance.alunos}" >
			<p:column headerText="Código">  
	            <h:outputText value="#{a.codigo}" />  
	        </p:column> 
			<p:column headerText="Nome Completo">  
	            <h:outputText value="#{a.nomeCompleto}" />  
	        </p:column>
		</p:dataTable>
	</div>
</f:view>